package com.yisu.auction.manager.core.mapper;

import com.yisu.auction.ewf.entity.AppSignGoods;
import com.yisu.auction.manager.domain.request.appSignPackage.AppSignGoodsRequest;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AppSignGoodsMapper {
    int deleteByPrimaryKey(Long id);

    int insert(AppSignGoods record);

    int insertSelective(AppSignGoods record);

    AppSignGoods selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AppSignGoods record);

    int updateByPrimaryKey(AppSignGoods record);

    /**
     * author:赵杰
     * Business Description:通过商品ID获取包商品
     * @param appSignGoodsRequest
     * @return
     */
    List<AppSignGoods> getAppSignGoodsListByGoodsId(AppSignGoodsRequest appSignGoodsRequest);

    /**
     * author:赵杰
     * Business Description:通过商品ID删除对应关系
     * @param goodsId
     * @return
     */
    int deleteByGoodsId(@Param("goodsId") Long goodsId);
}